home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / e / misc.save / 000053_fdc@panix.com_Sat Jan 13 14:25:36 2007.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Path: reader2.panix.com!reader1.panix.com!panix!not-for-mail
  2. From: Frank da Cruz <fdc@panix.com>
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: Re: HELP DATE - NOW not documented?
  5. Date: Sat, 13 Jan 2007 19:25:31 +0000 (UTC)
  6. Organization: PANIX Public Access Internet and UNIX, NYC
  7. Lines: 49
  8. Message-ID: <slrneqichb.bes.fdc@panix2.panix.com>
  9. References: <if9n74-lil.ln1@CPE-124-177-240-121.sa.bigpond.net.au> <bubn74-7k.ln1@CPE-124-177-240-121.sa.bigpond.net.au>
  10. Reply-To: fdc@columbia.edu
  11. NNTP-Posting-Host: panix2.panix.com
  12. X-Trace: reader2.panix.com 1168716331 1696 166.84.1.2 (13 Jan 2007 19:25:31 GMT)
  13. X-Complaints-To: abuse@panix.com
  14. NNTP-Posting-Date: Sat, 13 Jan 2007 19:25:31 +0000 (UTC)
  15. User-Agent: slrn/0.9.8.0 (NetBSD)
  16. Xref: panix comp.protocols.kermit.misc:15625
  17.  
  18. On 2007-01-13, Arthur Marsh <arthur.marsh@internode.on.net> wrote:
  19. : Arthur Marsh wrote, On 14/01/07 02:07:
  20. :> Hi, I just needed to display the current UTC date and time at the 
  21. :> C-Kermit prompt (using the current nightly build on Debian unstable) and 
  22. :>  looked at the options using HELP DATE.
  23. :> 
  24. :> Although it wasn't (apparently) documented, I tried:
  25. :> 
  26. :> DATE NOW UTC
  27. :> 
  28. :> and obtained the desired result.
  29. :> 
  30. :> Could the "NOW" keyword be documented in the "HELP DATE" text please?
  31. :
  32. OK, on my list.
  33.  
  34. : Correction, DATE NOW UTC gave me a didn't give me the correct time, it 
  35. : ADDED 10:30 to the local time instead of subtracting it (My current 
  36. : local timezone is UTC+10:30):
  37. :
  38. : date
  39. : 20070114 02:22:51
  40. : (/home/amarsh04/) C-Kermit>date now
  41. : 20070114 02:22:53
  42. : (/home/amarsh04/) C-Kermit>date now utc
  43. : 20070114 12:52:57
  44. : (/home/amarsh04/) C-Kermit>date now -10:30
  45. : 20070113 15:53:08
  46. : (/home/amarsh04/) C-Kermit>
  47. :
  48. DATE 20070114 02:22:53 UTC indicates a date/time at the Greenwich Meridian.
  49. The keyword NOW is substituted by the current local date/time; so "DATE NOW
  50. UTC" is kind of a mixed bag.  It means, "if this is what the clock says in
  51. Greenwich, then what time would it be here?", which is the opposite of what
  52. you wanted; see:
  53.  
  54.   http://www.columbia.edu/kermit/ckermit80.html#x8.13.3
  55.  
  56. The way to do what you want is:
  57.  
  58.   echo \futcdate(now)
  59.  
  60. or simply:
  61.  
  62.   echo \futcdate()
  63.  
  64. I admit, this could be documented better.  On my list!
  65.  
  66. - Frank